package com.donger.business.modules.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.donger.business.modules.upms.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户与角色对应关系 Mapper 接口
 * </p>
 *
 * @author xyx
 * @since 2019-01-12
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据UserID 删除 用户角色中间表
     *
     * @param idList 用户ID列表
     * @return 成功标记
     */
    Boolean deleteByUserIds(@Param("idList") List<Long> idList);
}
